﻿// Fee.cpp : 实现文件
//

#include "stdafx.h"
#include "学生管理系统MFC.h"
#include "Fee.h"
#include "afxdialogex.h"


// CFee 对话框

IMPLEMENT_DYNAMIC(CFee, CDialog)

CFee::CFee(CWnd* pParent /*=NULL*/)
	: CDialog(IDD_FEE, pParent)
{

}

CFee::~CFee()
{
}

void CFee::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_TAB1, m_tab);
}


BEGIN_MESSAGE_MAP(CFee, CDialog)
END_MESSAGE_MAP()


// CFee 消息处理程序


BOOL CFee::OnInitDialog()
{
	CDialog::OnInitDialog();
	m_tab.InsertItem(0, _T("缴费通知单"));
	m_tab.InsertItem(1, _T("账户基本信息"));
	m_tab.InsertItem(2, _T("缴退费清单"));
	m_tab.InsertItem(3, _T("学分学费明细"));
	m_tab.InsertItem(4, _T("专业注册费明细"));
	m_tab.SetCurSel(0);//设置默认选项卡  
	m_paymentnotice.Create(IDD_PAYMENTNOTICE, &m_tab);
	m_paymentinfo.Create(IDD_PAYMENTINFO, &m_tab);
	m_payrefundlist.Create(IDD_PAYREFUNDLIST, &m_tab);
	m_creditfee.Create(IDD_CREDITFEE, &m_tab);
	m_proregister.Create(IDD_PROREGISTER, &m_tab);
	//设定在Tab内显示的范围
	CRect rc;
	m_tab.GetClientRect(rc);
	rc.top += 20;
	rc.bottom -= 0;
	rc.left += 0;
	rc.right -= 0;
	m_paymentnotice.MoveWindow(&rc);
	m_paymentinfo.MoveWindow(&rc);
	m_payrefundlist.MoveWindow(&rc);
	m_creditfee.MoveWindow(&rc);
	m_proregister.MoveWindow(&rc);
	m_paymentnotice.ShowWindow(SW_SHOW);
	m_paymentinfo.ShowWindow(SW_HIDE);
	m_payrefundlist.ShowWindow(SW_HIDE);
	m_creditfee.ShowWindow(SW_HIDE);
	m_proregister.ShowWindow(SW_HIDE);
	// TODO:  在此添加额外的初始化

	return TRUE;  // return TRUE unless you set the focus to a control
				  // 异常: OCX 属性页应返回 FALSE
}
void CFee::OnOK()
{

}